package com.sugar.persistence.system.privilege;

import java.util.LinkedHashMap;
import java.util.List;

import com.sugar.common.query.PageModel;
import com.sugar.domain.system.privilege.PrivilegeRole;

public interface IPrivilegeRole {
	
	public void savePrivilegeRoleDao(PrivilegeRole role) throws RuntimeException ;
	
	public void deletePrivilegeRoleDao(PrivilegeRole role) throws RuntimeException ;
	
	public void deleteSelectPrivilegeRoleDao(Object[] ids) throws RuntimeException ;
	
	public void updatePrivilegeRoleDao(PrivilegeRole role) throws RuntimeException ;
	
	public PrivilegeRole loadPrivilegeRoleByIdDao(int id) throws RuntimeException ;
	
	public List<PrivilegeRole> findPrivilegeRoleDao(String queryString,String whereStr,Object[] param,LinkedHashMap<String, String> orderby) throws RuntimeException ;
	
	public PageModel<PrivilegeRole> getScorllPrivilegeRoleDao(String queryString,String whereStr,Object[] param,int firstPage,int pageSize,LinkedHashMap<String, String> orderby) throws RuntimeException ;
	
	

}
